package edu.upf.grupoe.p2ppicture.DBAccessEngine.implementations;

import edu.upf.grupoe.p2ppicture.DBAcessEngine.Interfaces.DBAction;

/**
 *
 * @author Alberto Llor
 * NIA: 69808
 * 
 */
public class DBActionImpl implements DBAction {
    
    private Object[] parameters;
    private String actionId;
    private boolean updated;
    
    public DBActionImpl (String id){
        this.actionId = id;
        this.parameters = null;
        this.updated = false;
    }

    public boolean isUpdate() {
        return this.updated;
    }
    
    
    public void setUpdate (boolean u) {
        this.updated = u;
    }
    
    @Override
    public void setParameters(Object[] p) {
        this.parameters = p;
    }

    @Override
    public Object[] getParameters() {
        return this.parameters;
    }

    @Override
    public String getActionId() {
        return this.actionId;
    }

    @Override
    public void setActionId(String id) {
        this.actionId = id;
    }
}
    